import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase14='DBshop014_删除编辑流程'

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','管理分类','商品分类')
firefox.find_elements_by_partial_link_text('删除分类')[11].click()# 删除
firefox.switch_to.alert.accept()#Java框弹窗处理
try:
    firefox.find_element_by_name("class_sort[4]")# 定位分类号为4的
    writeLog("%s 测试不通过"%testCase14)
    getPhoto(firefox)
except:
    writeLog("%s 测试通过"%testCase14)
firefox.quit()


